package com.whw.dubbo.provider.controller;

import org.dubbo.consume.service.ConsumerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/consumer")
public class ConsumeController {
	@Autowired(required=false)
	private ConsumerService consumerService;
	@RequestMapping("/say")
	public String say(String name){
		return consumerService.sayConsume(name);
	}
}
